<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">

<script type="text/javascript" src=" <?php echo base_url();?>js/tabbed.js"></script>
  <script type="text/javascript" src=" <?php echo base_url();?>js/tabs.js"></script>

<link rel="stylesheet" type="text/css" href=" <?php echo base_url();?>css/style_list_tecn.css"></link>


</head>




<body onLoad="window.parent.scrollTo(0,0)">


</br>

  <form>  
	    <?php if($id == 1){  ?>
<input type="button" class="btnLogin" value="A&ntilde;adir obra" onClick=" window.location.href='<?php echo base_url();?>index.php/obra/insertar_obra/'; "/></br></br>
<?php } ?>   
</form></br>
 
<section id="tabla">

<table>
    <tr>
      <th>Nombre</th>
      <th>Ubicacion</th>
      <th>Tel&eacute;fono</th>
     
      </tr>
<?php 

  foreach($results as $dato):
  
 ?>
	
<tr>
<?php $attr = array(
'target'=>'_top'
);?>
   <td><?php if($id == 1) { echo anchor('menu_admin/index/'.$dato->idObra.'',$dato->nombreObra, $attr);  } else {echo anchor('list_visitas/list_vis_tecn/'.$dato->idObra.'',$dato->nombreObra,$attr);} ?></td>
    <td><?=$dato->ubicacion ?></td>
    <td><?=$dato->telefono ?></td>
   
   
  </tr> 
  
  
 <?php endforeach;?>
  
 
	 
	</table>
</section></br></br>  
	    
	    
	  
	    
	    </body>

</html>